//
//  ZGLAgainstCell.h
//  ZeegingLottery
//
//  Created by 蒂埃里 on 2018/4/13.
//  Copyright © 2018年 蒂埃里. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ZGLAgainstModel.h"
#import "YUFoldingTableView.h"

typedef void(^SelectionModelsBlock)(NSInteger num);

@protocol ZGLAgainstCellDelegate <NSObject>

- (void)addMatchWith:(ZGLAgainstModel *)model;
- (void)deleteMatchWith:(ZGLAgainstModel *)model;

@end


@interface ZGLAgainstCell : UITableViewCell

@property (nonatomic, strong)ZGLAgainstModel *model;

@property (nonatomic, copy)SelectionModelsBlock modelsBlock;

@property (nonatomic, weak)id <ZGLAgainstCellDelegate> delegate;

+ (instancetype)againstCellWithTableView:(YUFoldingTableView *)tableView;

+ (instancetype)againstCellWithTableView:(YUFoldingTableView *)tableView indexPath:(NSIndexPath *)indexPath;


@end
